package com.yaorange.nongjt.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.yaorange.common.annotation.Excel;
import com.yaorange.common.core.domain.BaseEntity;

/**
 * 检测报告对象 njt_inspection_report
 * 
 * @author hzliu
 * @date 2025-03-02
 */
public class NjtInspectionReport extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Long id;

    /** 生产地址 */
    @Excel(name = "生产地址")
    private String productionAddress;

    /** 产品名称 */
    @Excel(name = "产品名称")
    private String productName;

    /** 重量 */
    @Excel(name = "重量")
    private BigDecimal weight;

    /** 单位 */
    @Excel(name = "单位")
    private String unit;

    /** 合格方式 */
    @Excel(name = "合格方式")
    private String qualificationMethod;

    /** 检验机构 */
    @Excel(name = "检验机构")
    private String inspectionAgency;

    /** 检查报告 */
    @Excel(name = "检查报告")
    private String inspectionReportUrl;

    /** 开具日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "开具日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date issueTime;

    /** 检测报告id */
    private Long reportId;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setProductionAddress(String productionAddress) 
    {
        this.productionAddress = productionAddress;
    }

    public String getProductionAddress() 
    {
        return productionAddress;
    }
    public void setProductName(String productName) 
    {
        this.productName = productName;
    }

    public String getProductName() 
    {
        return productName;
    }
    public void setWeight(BigDecimal weight) 
    {
        this.weight = weight;
    }

    public BigDecimal getWeight() 
    {
        return weight;
    }
    public void setUnit(String unit) 
    {
        this.unit = unit;
    }

    public String getUnit() 
    {
        return unit;
    }
    public void setQualificationMethod(String qualificationMethod) 
    {
        this.qualificationMethod = qualificationMethod;
    }

    public String getQualificationMethod() 
    {
        return qualificationMethod;
    }
    public void setInspectionAgency(String inspectionAgency) 
    {
        this.inspectionAgency = inspectionAgency;
    }

    public String getInspectionAgency() 
    {
        return inspectionAgency;
    }
    public void setInspectionReportUrl(String inspectionReportUrl) 
    {
        this.inspectionReportUrl = inspectionReportUrl;
    }

    public String getInspectionReportUrl() 
    {
        return inspectionReportUrl;
    }
    public void setIssueTime(Date issueTime) 
    {
        this.issueTime = issueTime;
    }

    public Date getIssueTime() 
    {
        return issueTime;
    }
    public void setReportId(Long reportId) 
    {
        this.reportId = reportId;
    }

    public Long getReportId() 
    {
        return reportId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("productionAddress", getProductionAddress())
            .append("productName", getProductName())
            .append("weight", getWeight())
            .append("unit", getUnit())
            .append("qualificationMethod", getQualificationMethod())
            .append("inspectionAgency", getInspectionAgency())
            .append("inspectionReportUrl", getInspectionReportUrl())
            .append("issueTime", getIssueTime())
            .append("reportId", getReportId())
            .toString();
    }
}
